json.food_types @food_types do |food_type|
    json.name food_type.name
    json.type food_type.id
    json.foods food_type.foods.where(is_published:true) do |food|
        food_json json,food   
    end    
end 

  

